Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add read_all to std:io::Read to parallel write_all in std::io::Write. #23369

Closed
wants to merge 1 commit into from

Conversation

novalis
Copy link
Contributor

@novalis novalis commented Mar 14, 2015

Fixes #23174

@rust-highfive
Copy link
Collaborator

r? @aturon

(rust_highfive has picked a reviewer for you, use r? to override)

@mahkoh
Copy link
Contributor

mahkoh commented Mar 15, 2015

Needs an RFC.

@novalis
Copy link
Contributor Author

novalis commented Mar 15, 2015

RFC: rust-lang/rfcs#980

@bors
Copy link
Contributor

bors commented Mar 19, 2015

☔ The latest upstream changes (presumably #23430) made this pull request unmergeable. Please resolve the merge conflicts.

In the event of EOF, read_all returns a result with the new error
ShortRead(number of bytes successfully read).

Fixes rust-lang#23174
@archshift
Copy link
Contributor

What's the status of this?

@bombless
Copy link
Contributor

bombless commented May 1, 2015

@archshift, seems that this will get merged once the RFC is accepted.

/// particular number of bytes but only a smaller number of bytes could be
/// read.
#[stable(feature = "rust1", since = "1.0.0")]
ShortRead(usize),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This changes the size of the enum dramatically.

@alexcrichton
Copy link
Member

I'm going to close this in favor of the associated RFC, but we can certainly reopen if it's accepted!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add read_full to std::io::ReadExt
10 participants